.class public abstract Lcom/wqmobile/sdk/protocol/cmd/a;
.super Ljava/lang/Object;


# instance fields
.field protected a:B

.field protected b:B

.field protected c:Ljava/util/List;

.field private d:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;


# direct methods
.method constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    return-void
.end method

.method protected static a(Ljava/lang/String;)Ljava/math/BigInteger;
    .locals 6

    invoke-virtual {p0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    new-instance v1, Ljava/math/BigInteger;

    const-string v2, "0"

    invoke-direct {v1, v2}, Ljava/math/BigInteger;-><init>(Ljava/lang/String;)V

    const/4 v2, 0x0

    move v5, v2

    move-object v2, v1

    move v1, v5

    :goto_0
    array-length v3, v0

    if-lt v1, v3, :cond_0

    return-object v2

    :cond_0
    const-wide/16 v3, 0x5

    invoke-static {v3, v4}, Ljava/math/BigInteger;->valueOf(J)Ljava/math/BigInteger;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/math/BigInteger;->multiply(Ljava/math/BigInteger;)Ljava/math/BigInteger;

    move-result-object v2

    aget-byte v3, v0, v1

    int-to-long v3, v3

    invoke-static {v3, v4}, Ljava/math/BigInteger;->valueOf(J)Ljava/math/BigInteger;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/math/BigInteger;->add(Ljava/math/BigInteger;)Ljava/math/BigInteger;

    move-result-object v2

    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method


# virtual methods
.method public a([B)I
    .locals 3

    const/4 v0, 0x0

    array-length v1, p1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p0, p1, v0, v1}, Lcom/wqmobile/sdk/protocol/cmd/a;->a([BII)I

    move-result v0

    return v0
.end method

.method public a([BII)I
    .locals 7

    const/4 v6, 0x0

    sub-int v0, p3, p2

    add-int/lit8 v0, v0, 0x1

    if-eqz p1, :cond_0

    if-lez v0, :cond_0

    array-length v0, p1

    if-ge p3, v0, :cond_0

    if-ltz p2, :cond_0

    if-gtz p3, :cond_2

    :cond_0
    move v0, v6

    :cond_1
    :goto_0
    return v0

    :cond_2
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    move v2, v6

    move v3, p2

    :goto_1
    if-lt v2, v1, :cond_3

    add-int/lit8 v0, v3, 0x1

    if-eq v2, v1, :cond_1

    move v0, v6

    goto :goto_0

    :cond_3
    aget-byte v0, p1, v3

    iget-byte v4, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    if-eq v0, v4, :cond_4

    move v0, v6

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [B

    array-length v4, v0

    add-int/lit8 v5, v3, 0x1

    invoke-static {v0, v6, p1, v5, v4}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    move-result v5

    if-nez v5, :cond_5

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->b([B)V

    move v0, v6

    goto :goto_0

    :cond_5
    add-int v0, v3, v4

    add-int/lit8 v0, v0, 0x1

    add-int/lit8 v2, v2, 0x1

    move v3, v0

    goto :goto_1
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->d:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    return-void
.end method

.method protected final a([BIII)Z
    .locals 6

    const/4 v5, 0x0

    if-nez p1, :cond_0

    move v0, v5

    :goto_0
    return v0

    :cond_0
    sub-int v0, p4, p3

    add-int/lit8 v0, v0, 0x1

    const/4 v1, 0x2

    if-lt v0, v1, :cond_1

    aget-byte v1, p1, p3

    iget-byte v2, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    if-ne v1, v2, :cond_1

    aget-byte v1, p1, p4

    iget-byte v2, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    if-eq v1, v2, :cond_2

    :cond_1
    move v0, v5

    goto :goto_0

    :cond_2
    move v1, p3

    move v2, v5

    :goto_1
    add-int v3, p3, v0

    if-lt v1, v3, :cond_4

    :cond_3
    move v0, v2

    if-le p2, v0, :cond_6

    move v0, v5

    goto :goto_0

    :cond_4
    aget-byte v3, p1, v1

    iget-byte v4, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    if-ne v3, v4, :cond_5

    add-int/lit8 v2, v2, 0x1

    :cond_5
    if-eq v2, p2, :cond_3

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_6
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public b([BII)Z
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {p0, p1, v0, p2, p3}, Lcom/wqmobile/sdk/protocol/cmd/a;->a([BIII)Z

    move-result v0

    return v0
.end method

.method public c()[B
    .locals 7

    const/4 v6, 0x0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v0

    new-array v1, v0, [B

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    move v3, v6

    move v0, v6

    :goto_0
    if-lt v3, v2, :cond_0

    iget-byte v2, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    aput-byte v2, v1, v0

    return-object v1

    :cond_0
    add-int/lit8 v4, v0, 0x1

    iget-byte v5, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->a:B

    aput-byte v5, v1, v0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [B

    array-length v5, v0

    invoke-static {v1, v4, v0, v6, v5}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    add-int v0, v4, v5

    add-int/lit8 v3, v3, 0x1

    goto :goto_0
.end method

.method public d()I
    .locals 1

    iget-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->b:B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->b(B)I

    move-result v0

    return v0
.end method

.method public doAction(Lcom/wqmobile/sdk/protocol/a;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method protected e()I
    .locals 3

    const/4 v0, 0x0

    move v1, v0

    move v2, v0

    :goto_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/2addr v0, v2

    add-int/lit8 v0, v0, 0x1

    return v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [B

    array-length v0, v0

    add-int/2addr v0, v2

    add-int/lit8 v1, v1, 0x1

    move v2, v0

    goto :goto_0
.end method

.method public final f()Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/a;->d:Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;

    return-object v0
.end method
